Optimal. Leaf size=215 \[ \frac {4 a^3 (7 A+5 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {4 a^3 (13 A+35 C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}+\frac {4 a^3 (41 A-35 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{105 d}+\frac {2 C (a+a \cos (c+d x))^3 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-7 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right )^2 \sin (c+d x)}{7 a d}+\frac {2 (11 A-35 C) \sqrt {\cos (c+d x)} \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{35 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.43, antiderivative size = 215, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 8, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.229, Rules used = {4199, 3123,
3055, 3047, 3102, 2827, 2720, 2719} \begin {gather*} \frac {4 a^3 (13 A+35 C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}+\frac {4 a^3 (7 A+5 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {4 a^3 (41 A-35 C) \sin (c+d x) \sqrt {\cos (c+d x)}}{105 d}+\frac {2 (11 A-35 C) \sin (c+d x) \sqrt {\cos (c+d x)} \left (a^3 \cos (c+d x)+a^3\right )}{35 d}+\frac {2 (A-7 C) \sin (c+d x) \sqrt {\cos (c+d x)} \left (a^2 \cos (c+d x)+a^2\right )^2}{7 a d}+\frac {2 C \sin (c+d x) (a \cos (c+d x)+a)^3}{d \sqrt {\cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2719
Rule 2720
Rule 2827
Rule 3047
Rule 3055
Rule 3102
Rule 3123
Rule 4199
Rubi steps
\begin {align*} \int \cos ^{\frac {7}{2}}(c+d x) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \, dx &=\int \frac {(a+a \cos (c+d x))^3 \left (C+A \cos ^2(c+d x)\right )}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 C (a+a \cos (c+d x))^3 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 \int \frac {(a+a \cos (c+d x))^3 \left (3 a C+\frac {1}{2} a (A-7 C) \cos (c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx}{a}\\ &=\frac {2 C (a+a \cos (c+d x))^3 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-7 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right )^2 \sin (c+d x)}{7 a d}+\frac {4 \int \frac {(a+a \cos (c+d x))^2 \left (\frac {1}{4} a^2 (A+35 C)+\frac {1}{4} a^2 (11 A-35 C) \cos (c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx}{7 a}\\ &=\frac {2 C (a+a \cos (c+d x))^3 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-7 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right )^2 \sin (c+d x)}{7 a d}+\frac {2 (11 A-35 C) \sqrt {\cos (c+d x)} \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{35 d}+\frac {8 \int \frac {(a+a \cos (c+d x)) \left (\frac {1}{2} a^3 (4 A+35 C)+\frac {1}{4} a^3 (41 A-35 C) \cos (c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx}{35 a}\\ &=\frac {2 C (a+a \cos (c+d x))^3 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-7 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right )^2 \sin (c+d x)}{7 a d}+\frac {2 (11 A-35 C) \sqrt {\cos (c+d x)} \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{35 d}+\frac {8 \int \frac {\frac {1}{2} a^4 (4 A+35 C)+\left (\frac {1}{4} a^4 (41 A-35 C)+\frac {1}{2} a^4 (4 A+35 C)\right ) \cos (c+d x)+\frac {1}{4} a^4 (41 A-35 C) \cos ^2(c+d x)}{\sqrt {\cos (c+d x)}} \, dx}{35 a}\\ &=\frac {4 a^3 (41 A-35 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{105 d}+\frac {2 C (a+a \cos (c+d x))^3 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-7 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right )^2 \sin (c+d x)}{7 a d}+\frac {2 (11 A-35 C) \sqrt {\cos (c+d x)} \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{35 d}+\frac {16 \int \frac {\frac {5}{8} a^4 (13 A+35 C)+\frac {21}{8} a^4 (7 A+5 C) \cos (c+d x)}{\sqrt {\cos (c+d x)}} \, dx}{105 a}\\ &=\frac {4 a^3 (41 A-35 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{105 d}+\frac {2 C (a+a \cos (c+d x))^3 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-7 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right )^2 \sin (c+d x)}{7 a d}+\frac {2 (11 A-35 C) \sqrt {\cos (c+d x)} \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{35 d}+\frac {1}{5} \left (2 a^3 (7 A+5 C)\right ) \int \sqrt {\cos (c+d x)} \, dx+\frac {1}{21} \left (2 a^3 (13 A+35 C)\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {4 a^3 (7 A+5 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {4 a^3 (13 A+35 C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{21 d}+\frac {4 a^3 (41 A-35 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{105 d}+\frac {2 C (a+a \cos (c+d x))^3 \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {2 (A-7 C) \sqrt {\cos (c+d x)} \left (a^2+a^2 \cos (c+d x)\right )^2 \sin (c+d x)}{7 a d}+\frac {2 (11 A-35 C) \sqrt {\cos (c+d x)} \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{35 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 6.60, size = 1108, normalized size = 5.15 \begin {gather*} \frac {\cos ^{\frac {11}{2}}(c+d x) \sec ^6\left (\frac {c}{2}+\frac {d x}{2}\right ) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \left (-\frac {(14 A+5 C+14 A \cos (2 c)+15 C \cos (2 c)) \csc (c) \sec (c)}{20 d}+\frac {(107 A+28 C) \cos (d x) \sin (c)}{168 d}+\frac {3 A \cos (2 d x) \sin (2 c)}{20 d}+\frac {A \cos (3 d x) \sin (3 c)}{56 d}+\frac {(107 A+28 C) \cos (c) \sin (d x)}{168 d}+\frac {C \sec (c) \sec (c+d x) \sin (d x)}{2 d}+\frac {3 A \cos (2 c) \sin (2 d x)}{20 d}+\frac {A \cos (3 c) \sin (3 d x)}{56 d}\right )}{A+2 C+A \cos (2 c+2 d x)}-\frac {13 A \cos ^5(c+d x) \csc (c) \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};\sin ^2(d x-\text {ArcTan}(\cot (c)))\right ) \sec ^6\left (\frac {c}{2}+\frac {d x}{2}\right ) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \sec (d x-\text {ArcTan}(\cot (c))) \sqrt {1-\sin (d x-\text {ArcTan}(\cot (c)))} \sqrt {-\sqrt {1+\cot ^2(c)} \sin (c) \sin (d x-\text {ArcTan}(\cot (c)))} \sqrt {1+\sin (d x-\text {ArcTan}(\cot (c)))}}{21 d (A+2 C+A \cos (2 c+2 d x)) \sqrt {1+\cot ^2(c)}}-\frac {5 C \cos ^5(c+d x) \csc (c) \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};\sin ^2(d x-\text {ArcTan}(\cot (c)))\right ) \sec ^6\left (\frac {c}{2}+\frac {d x}{2}\right ) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \sec (d x-\text {ArcTan}(\cot (c))) \sqrt {1-\sin (d x-\text {ArcTan}(\cot (c)))} \sqrt {-\sqrt {1+\cot ^2(c)} \sin (c) \sin (d x-\text {ArcTan}(\cot (c)))} \sqrt {1+\sin (d x-\text {ArcTan}(\cot (c)))}}{3 d (A+2 C+A \cos (2 c+2 d x)) \sqrt {1+\cot ^2(c)}}-\frac {7 A \cos ^5(c+d x) \csc (c) \sec ^6\left (\frac {c}{2}+\frac {d x}{2}\right ) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \left (\frac {\, _2F_1\left (-\frac {1}{2},-\frac {1}{4};\frac {3}{4};\cos ^2(d x+\text {ArcTan}(\tan (c)))\right ) \sin (d x+\text {ArcTan}(\tan (c))) \tan (c)}{\sqrt {1-\cos (d x+\text {ArcTan}(\tan (c)))} \sqrt {1+\cos (d x+\text {ArcTan}(\tan (c)))} \sqrt {\cos (c) \cos (d x+\text {ArcTan}(\tan (c))) \sqrt {1+\tan ^2(c)}} \sqrt {1+\tan ^2(c)}}-\frac {\frac {\sin (d x+\text {ArcTan}(\tan (c))) \tan (c)}{\sqrt {1+\tan ^2(c)}}+\frac {2 \cos ^2(c) \cos (d x+\text {ArcTan}(\tan (c))) \sqrt {1+\tan ^2(c)}}{\cos ^2(c)+\sin ^2(c)}}{\sqrt {\cos (c) \cos (d x+\text {ArcTan}(\tan (c))) \sqrt {1+\tan ^2(c)}}}\right )}{10 d (A+2 C+A \cos (2 c+2 d x))}-\frac {C \cos ^5(c+d x) \csc (c) \sec ^6\left (\frac {c}{2}+\frac {d x}{2}\right ) (a+a \sec (c+d x))^3 \left (A+C \sec ^2(c+d x)\right ) \left (\frac {\, _2F_1\left (-\frac {1}{2},-\frac {1}{4};\frac {3}{4};\cos ^2(d x+\text {ArcTan}(\tan (c)))\right ) \sin (d x+\text {ArcTan}(\tan (c))) \tan (c)}{\sqrt {1-\cos (d x+\text {ArcTan}(\tan (c)))} \sqrt {1+\cos (d x+\text {ArcTan}(\tan (c)))} \sqrt {\cos (c) \cos (d x+\text {ArcTan}(\tan (c))) \sqrt {1+\tan ^2(c)}} \sqrt {1+\tan ^2(c)}}-\frac {\frac {\sin (d x+\text {ArcTan}(\tan (c))) \tan (c)}{\sqrt {1+\tan ^2(c)}}+\frac {2 \cos ^2(c) \cos (d x+\text {ArcTan}(\tan (c))) \sqrt {1+\tan ^2(c)}}{\cos ^2(c)+\sin ^2(c)}}{\sqrt {\cos (c) \cos (d x+\text {ArcTan}(\tan (c))) \sqrt {1+\tan ^2(c)}}}\right )}{2 d (A+2 C+A \cos (2 c+2 d x))} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 360, normalized size = 1.67
method | result | size |
default | \(-\frac {4 a^{3} \left (120 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-432 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+602 A \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+70 C \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-208 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) A +65 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-147 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-140 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) C +175 C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-105 C \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{105 \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d}\) | \(360\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.48, size = 245, normalized size = 1.14 \begin {gather*} -\frac {2 \, {\left (5 i \, \sqrt {2} {\left (13 \, A + 35 \, C\right )} a^{3} \cos \left (d x + c\right ) {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) - 5 i \, \sqrt {2} {\left (13 \, A + 35 \, C\right )} a^{3} \cos \left (d x + c\right ) {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 21 i \, \sqrt {2} {\left (7 \, A + 5 \, C\right )} a^{3} \cos \left (d x + c\right ) {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 21 i \, \sqrt {2} {\left (7 \, A + 5 \, C\right )} a^{3} \cos \left (d x + c\right ) {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) - {\left (15 \, A a^{3} \cos \left (d x + c\right )^{3} + 63 \, A a^{3} \cos \left (d x + c\right )^{2} + 5 \, {\left (26 \, A + 7 \, C\right )} a^{3} \cos \left (d x + c\right ) + 105 \, C a^{3}\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )\right )}}{105 \, d \cos \left (d x + c\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.01, size = 269, normalized size = 1.25 \begin {gather*} \frac {2\,\left (A\,a^3\,\mathrm {E}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )+A\,a^3\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )+A\,a^3\,\sqrt {\cos \left (c+d\,x\right )}\,\sin \left (c+d\,x\right )\right )}{d}+\frac {C\,a^3\,\left (\frac {2\,\sqrt {\cos \left (c+d\,x\right )}\,\sin \left (c+d\,x\right )}{3}+\frac {2\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{3}\right )}{d}+\frac {6\,C\,a^3\,\mathrm {E}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {6\,C\,a^3\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}-\frac {6\,A\,a^3\,{\cos \left (c+d\,x\right )}^{7/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {7}{4};\ \frac {11}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{7\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,A\,a^3\,{\cos \left (c+d\,x\right )}^{9/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {9}{4};\ \frac {13}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{9\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}+\frac {2\,C\,a^3\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{4},\frac {1}{2};\ \frac {3}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{d\,\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________